package com.xdjk.networkdemo.entity;

import com.google.gson.Gson;

/**
 * Created by zhanghs on 2018/2/11.
 */

public class LoginParam {
    private String username;
    private String password;
    private String mobileLogin;
    private boolean rememberMe;

    public LoginParam(String username, String password, String mobileLogin, boolean rememberMe) {
        this.username = username;
        this.password = password;
        this.mobileLogin = mobileLogin;
        this.rememberMe = rememberMe;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getMobileLogin() {
        return mobileLogin;
    }

    public void setMobileLogin(String mobileLogin) {
        this.mobileLogin = mobileLogin;
    }

    public boolean getRememberMe() {
        return rememberMe;
    }

    public void setRememberMe(boolean rememberMe) {
        this.rememberMe = rememberMe;
    }

    @Override
    public String toString() {
        return new Gson().toJson(this);
    }
}
